<?php
/**
 * appRain v 0.1.x
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */
 ?>
<form method="post" action="<?php echo $this->baseurl("/developer/clearcache");?>">
<?php App::Helper('Toolbar')->setTitle("Clear Temporary Cache")->setBtnSave(array('name'=>'Ok'))->setBtnBack()->Render(array('code'=>'clear_cache_top'));?>
<br class="clearboth" />
<?php echo $this->callElement('default/tools/message', array('caption' =>'Message','type' => 'success', 'message' => $message));?>
<table width="100%">
<tr>
    <td width="50%">
    <div class="app_box">
        <h3 class="app_box_title"><span class="box-button">Clear Temporary Cache </span></h3>
        <div class="box-body">
            <div style="padding:15px">
                <?php
                    echo App::Load("Helper/Html")->radioTag("data[Cache][type]",$cacheAllDef,'',null,array('html_wrapper'=>'br'));
                ?>
            </div>
        </div>
    </div>
    </td>
    <td>
        <div class="app_box">
        <h3 class="app_box_title"><span class="box-button">Estamate Space</span></h3>
        <div class="box-body">
            <div style="padding:2px;">
             <?php
                foreach($spaceestimate as $space):
                    App::Module('DataGrid')->addRow( $space['title'],$space['size'] . "kb");
                endforeach;
                App::Module('DataGrid')->setHeader(array('Cache Type', 'Size'));
                App::Module('DataGrid')->setFooter("");
                App::Module('DataGrid')->render();
             ?>
            </div>
        </div>
        </div>
    </td>
</tr>
</table>
<?php App::Helper('Toolbar')->setBtnSave(array('name'=>'Ok'))->setBtnBack()->Render(array('code'=>'clear_cache_bottom'));?>
</form>